<template>
  <div class="noticeItem" >
    <div class="icon">
      <!-- <i class="el-icon-notebook-2"></i> -->
      <img src="" />
    </div>
    <div class="contentBox">
      <span class="title"><span class="title-content">{{ params.title }}</span> <span v-if="params.status!=2" class="btn" @click="goDetial">去处理</span></span>
      <div class="content">
       {{params.content}}
      </div>
      <span class="msgBox">
         <span class="msg2"><i class="iconfont icon-a-1"></i>发起人：{{ params.promoterName }}</span>
        <span class="msg1"><i class="iconfont icon-a-2"></i>来源：{{ params.sourceSystem }}</span>

        <span class="msg3"><i class="iconfont icon-a-3"></i>时间：{{ params.promoteTime }}</span>
      </span>
    </div>
  </div>
</template>

<script>
export default {
  name: "noticeItem",
  methods:{
    goDetial(){
      if(this.params.status == 2){
        return
      }
      window.open(this.params.systemUrl,'_blank')
    },
  },
  props:{
    params:{
      default:()=>{}
    }
  }

}
</script>

<style scoped lang="less">
.noticeItem {
  display: flex;
  //align-items: center;
  width: 89rem;
  height: 19rem;
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  border-radius: 4px;
  .contentBox{
    display: flex;
    flex-direction: column;
    padding-top: 1.4rem;
    flex:1;
    .content{
      width: 76.3rem;
      height: 5.3rem;
      padding:1rem 2rem 2rem;
      background: #FAFAFA;
      border-radius: 0.5rem;
      margin-bottom: 1.2rem;
      line-height: 3.3rem;
      text-overflow: ellipsis;
      font-size: 1.7rem;
      overflow: hidden;
      -webkit-line-clamp: 2;
      display: -webkit-box;
      -webkit-box-orient: vertical;
    }
    .title{
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 2em;
      font-family: Microsoft YaHei;
      width: 80.5rem;
      height: 3.2rem;
      font-weight: 400;
      color: #303860;
      margin-bottom: 1rem;
      .title-content{
        width: 69rem;
        overflow:hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        -o-text-overflow:ellipsis;
      }
      .btn{
        width: 8.5rem;
        height: 3.2rem;
        background: #3772FF;
        border-radius: 5px;
        display: inline-block;
        line-height: 3.2rem;
        text-align: center;
        color: white;
        font-size: 1.7rem;
        cursor: pointer;
      }
    }
    .msgBox{
      display: flex;
      justify-content: space-between;
      i{
        font-size: 2.1rem;
      }
      span{
        margin-right: 3rem;
      }
      .msg1{
        font-size: 1.7rem;
        color: #777777;
      }
      .msg2{
        font-size:1.7rem;
        color: #606891;
      }
      .msg3{
        font-size: 1.7rem;
        color: #999999;
      }
    }

  }
  .icon {
    width: 4.3rem;
    height: 4.3rem;
    background: #EBF2FF;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    margin-left:1rem;
    margin-top: 2rem;
    i {
      font-size: 2.3rem;
      color: #518AFF;
    }
  }
}

</style>